﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Models;

namespace Workflow
{
    public partial class SendInfo : System.Web.UI.Page
    {
        public List<WorkflowChildStatus> resultList = new List<WorkflowChildStatus>();
        private WorkflowManager objWorkflowManager = new WorkflowManager();
        public int workParentId;
        public int nextNodeNo;
        protected void Page_Load(object sender, EventArgs e)
        {
            workParentId = Convert.ToInt32(Request.QueryString["WorkParentId"]);
            nextNodeNo= Convert.ToInt32(Request.QueryString["NodeNo"])+1;
            try
            {
                resultList = objWorkflowManager.GetWorkflowChildStatus(workParentId, nextNodeNo);
            }
            catch (Exception ex)
            {

                string msg = string.Format("<script>alert('{0}');</script>", ex.Message.ToString());
                Response.Write(msg);
            }
            
        }
    }
}